package com.supreme.commonboot.annotation;

import com.supreme.commonboot.condition.ControllerAopCondition;
import org.springframework.context.annotation.Conditional;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target(value = {ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(ControllerAopCondition.class)
public @interface ControllerAopMatch {

    @AliasFor("name")
    String value() default "";

    @AliasFor("value")
    String name() default "";
}
